implicit k-d tree